import Vue from "vue"
import App from "./App.vue"
import router from "./router"
import "./assets/reset.css"
import "./assets/common.css"
Vue.prototype.$bus = new Vue()
Vue.config.productionTip = false
import axios from '@/api/instance'
Vue.prototype.$axios = axios
import "lib-flexible"
import VueI18n from "vue-i18n"
import messages from "./utils/lang"
import store from "./store"
import waterfall from "vue-waterfall2"

require("./mock")
import {
  Field,
  Form,
  Button,
  Search,
  Icon,
  Sidebar,
  SidebarItem,
  Tab,
  Tabs,
  Grid,
  GridItem,
  Image,
  List,
  cell,
  Card,
  SwipeCell,
  Row,
  Col,
  DropdownItem,
  DropdownMenu,
  SwipeItem,
  Swipe,
  NoticeBar,
  Sku,
  GoodsAction,
  GoodsActionButton,
  GoodsActionIcon,
  Popup,
  Stepper,
  ActionSheet,
} from "vant"
Vue.use(VueI18n)
  .use(Form)
  .use(Field)
  .use(Button)
  .use(Search)
  .use(Icon)
  .use(Sidebar)
  .use(SidebarItem)
  .use(Tabs)
  .use(Tab)
  .use(Grid)
  .use(GridItem)
  .use(Image)
  .use(List)
  .use(cell)
  .use(Card)
  .use(SwipeCell)
  .use(Col)
  .use(Row)
  .use(SwipeItem)
  .use(Swipe)
  .use(Sku)
  .use(GoodsAction)
  .use(GoodsActionButton)
  .use(GoodsActionIcon)
  .use(Popup)
  .use(Stepper)
  .use(ActionSheet)
Vue.use(waterfall)
const i18n = new VueI18n({
  locale: "cs",
  messages,
})

new Vue({
  router,
  i18n,
  store,
  render: (h) => h(App),
}).$mount("#app")
